







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
        <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
        <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
        <input type="text" name="search_data"  placeholder="期号" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
        <div class="layui-input-inline">

            <select name="lottery_id">
                <option value="" >全部彩种</option>
                {volist name='cate' id='vo'}
                <option value="{$vo['id']}" {notempty name="param['lottery_id']"}{if condition="$param['lottery_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                {/volist}
            </select>

        </div>
        <button class="layui-btn"  id="search"  url="{:url('lotteryResultList')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <span class="x-right" style="line-height:40px">共有数据：{$list.count} 条</span>
    </xblock>


    <table class="layui-table x-admin">
        <thead>
        <tr>

            <th>序号</th>
            <th>单号</th>
            <th>用户名</th>
            <th>彩票名称</th>
            <th>期号</th>
            <th>玩法</th>
            <th>注数</th>
            <th>奖金/赔率</th>
            <th>金额</th>
            <th>中奖金额</th>
            <th>号码</th>
            <th>开奖号码</th>
            <th>状态</th>
            <th>下注时间</th>
<!--            <th>操作</th>-->
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>

            <td>{$k}</td>
            <td>{$vo.trade_no}</td>
            <td>{$vo.username}</td>
            <td>{$vo.lottery.name}</td>
            <td>{$vo.round}</td>
            <td>{if condition="$vo.is_old eq 1"}{$vo.play.playcate.name}-{$vo.play.name}{else/}{$vo.play.name}{/if}</td>
            <td>{$vo.injection_number}</td>
            <td>{$vo.odds}</td>
            <td>{$vo.money}</td>
            <td>{$vo.reward_money}</td>
            <td>{$vo.number}</td>
            <td>{$vo.reward_number}</td>
            <td>{$vo.state_html}</td>
            <td>{$vo.create_time}</td>

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="16" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>


    <div class="page">
        {notempty name='list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('form', function(){
        form = layui.form;

    });
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });
</script>

</body>

</html>


